{include file="public/head"}
<body style="">
<!--background:#fc0f42-->
<header class="aui-header-default aui-header-fixed aui-header-bg">
    <a href="#" class="aui-header-item">
        <!--<i class="aui-icon aui-icon-back-white" id="scrollSearchI" style="display:block"></i>-->
        <div id="scrollSearchDiv">
            <img src="{$UserInfo.head_url}" onerror="this.src='__STATIC__/User/img/user/head-3.jpg'" alt="">
        </div>
    </a>
    <div class="aui-header-center aui-header-center-clear">
        <div class="">

        </div>
    </div>
    <a href="{:url('User/UserSetup')}" class="aui-header-item-icon">
        <i class="aui-icon aui-icon-Set"></i>
    </a>
</header>

<section class="aui-me-content">
    <div class="aui-me-content-box">
        <div class="aui-me-content-info"></div>
        <div class="aui-me-content-list">
            <div class="aui-me-content-item">
                <div class="aui-me-content-item-head">
                    <div class="aui-me-content-item-img">
                        <img src="{$UserInfo.head_url}" onerror="this.src='__STATIC__/User/img/user/head-3_bak.jpg'" alt="">
                    </div>
<!--                    <div class="aui-me-content-item-title">{$UserInfo.name} <span style="font-size: 12px;">{if condition="$UserInfo.level eq 1"}游客{elseif condition="$UserInfo.level eq 2"}会员{elseif condition="$UserInfo.level eq 3"}店铺{elseif condition="$UserInfo.level eq 4"}区县代{elseif condition="$UserInfo.level eq 5"}市代{elseif condition="$UserInfo.level eq 6"}省代{/if}</span></div>-->
                    <div class="aui-me-content-item-title">{$UserInfo.name} <span style="font-size: 12px;">{$UserInfo.level_name}</span></div>
                    </div>
                    <div class="aui-me-content-item-level" style="width: 7.5rem">编号:{$UserInfo.id}{if condition="$UserInfo.level_1 eq 0"}{elseif condition="$UserInfo.level_1 eq 1"}区县经理{elseif condition="$UserInfo.level_1 eq 2"}市总监{elseif condition="$UserInfo.level_1 eq 3"}省总监{/if}</div>
                    <div class="aui-me-content-item-qian {if condition="$UserInfo.qiandao eq date('Y-m-d')"}aui-me-content-active{/if}" onclick="func()">{if condition="$UserInfo.qiandao neq date('Y-m-d')"}签到{else/}已签到{/if}</div>
                <div class="aui-me-content-item-text">
                    <!--<a href="javascript:">-->
                        <!--<span>￥{$UserInfo.balance_1}</span>-->
                        <!--<span>奖金钱包</span>-->
                    <!--</a>-->
                    <a href="javascript:">
                        <span>{$UserInfo.balance_4}</span>
                        <span>余额</span>
                    </a>
                    <a href="javascript:">
                        <span>{$UserInfo.balance_1}</span>
                        <span>积分</span>
                    </a>
                    <!--<a href="javascript:" style="width: 24%">-->
                    <!--    <span>{$UserInfo.person_achievement}</span>-->
                    <!--    <span>个人收益</span>-->
                    <!--</a>-->
                    <a href="javascript:">
                        <span>{$UserInfo.team_num}</span>
                        <span>业绩</span>
                    </a>
                    <!--<a href="javascript:">-->
                        <!--<span>{$UserInfo.balance_2}</span>-->
                        <!--<span>炁点</span>-->
                    <!--</a>-->
                    <!--<a href="javascript:">-->
                        <!--<span>{$UserInfo.balance_3}</span>-->
                        <!--<span>股权</span>-->
                    <!--</a>-->
                </div>
            </div>
            <!--<div class="aui-me-content-card">-->
            <!--    <h3><i class="aui-icon aui-card-me"></i>{if condition="$UserInfo.level gt 0"}{$UserInfo.level_name}{else/}普通用户{/if}</h3>-->
            <!--    <h3 style="float: right">团队部门数：{$UserInfo.team_num}</h3>-->
            <!--</div>-->
        </div>
    </div>
    <div class="aui-me-content-order">
        <a href="{:url('Order/OrderList')}" class="aui-well aui-fl-arrow">
            <div class="aui-well-bd">我的订单</div>
            <div class="aui-well-ft">查看全部</div>
        </a>
    </div>
    <section class="aui-grid-content">
        <div class="aui-grid-row">
            <a href="{:url('Order/OrderList')}" class="aui-grid-row-item">
                <span style="position: absolute;border-radius: 50%;width: 25px;height: 25px;background: red;color: white;line-height: 25px;top: 10px;right: 20px;z-index: 999;border: 2px white solid">{$OrderList_0}</span>
                <img src="__STATIC__/User/img/logo/daifa.png" alt="" style="width:40px;height:40px;margin-left:29%"/>
                <p class="aui-grid-row-label">待付款</p>
            </a>
            <a href="{:url('Order/OrderList')}" class="aui-grid-row-item">
                <span style="position: absolute;border-radius: 50%;width: 25px;height: 25px;background: red;color: white;line-height: 25px;top: 10px;right: 20px;z-index: 999;border: 2px white solid">{$OrderList_1}</span>
                <img src="__STATIC__/User/img/logo/daifu.png" alt="" style="width:40px;height:40px;margin-left:29%"/>
                <p class="aui-grid-row-label">待发货</p>
            </a>
            <a href="{:url('Order/OrderList')}" class="aui-grid-row-item">
                <span style="position: absolute;border-radius: 50%;width: 25px;height: 25px;background: red;color: white;line-height: 25px;top: 10px;right: 20px;z-index: 999;border: 2px white solid">{$OrderList_2}</span>
                <img src="__STATIC__/User/img/logo/daishou.png" alt="" style="width:40px;height:40px;margin-left:29%"/>
                <p class="aui-grid-row-label">待收货</p>
            </a>
            <a href="{:url('Order/OrderList')}" class="aui-grid-row-item">
                <span style="position: absolute;border-radius: 50%;width: 25px;height: 25px;background: red;color: white;line-height: 25px;top: 10px;right: 20px;z-index: 999;border: 2px white solid">{$OrderListAll}</span>
                <img src="__STATIC__/User/img/logo/quanbu.png" alt="" style="width:40px;height:40px;margin-left:29%"/>
                <p class="aui-grid-row-label">全部订单</p>
            </a>
        </div>
        <div class="aui-dri"></div>
        <div class="aui-me-content-order">
            <a href="#" class="aui-well ">
                <div class="aui-well-bd">我的服务</div>
                <!--<div class="aui-well-ft">查看全部</div>-->
            </a>
        </div>
        <div class="aui-grid-row">
            <a href="{:url('User/UserQrcode')}" class="aui-grid-row-item">
                <!--<i class="aui-icon-large aui-icon-large-sm aui-icon-recommend"></i>-->
                <img src="__STATIC__/User/img/logo/yao.png" alt="" style="width:40px;height:40px;margin-left:29%"/>
                <p class="aui-grid-row-label">邀请好友</p>
            </a>
            <a href="{:url('User/UserTransfer')}" class="aui-grid-row-item">
                <!--<i class="aui-icon-large aui-icon-large-sm aui-icon-signs"></i>-->
                <img src="__STATIC__/User/img/logo/zhuan.png" alt="" style="width:40px;height:40px;margin-left:29%"/>
                <p class="aui-grid-row-label">积分转账</p>
            </a>
            <a href="{:url('User/UserWithdraw')}" class="aui-grid-row-item">
                <!--<i class="aui-icon-large aui-icon-large-sm aui-icon-coupon"></i>-->
                <img src="__STATIC__/User/img/logo/ti.png" alt="" style="width:40px;height:40px;margin-left:29%"/>
                <p class="aui-grid-row-label">奖金提现</p>
            </a>
            <!--<a href="{:url('User/UserRechange')}" class="aui-grid-row-item">-->
                <!--<i class="aui-icon-large aui-icon-large-sm aui-icon-coupon"></i>-->
                <!--<p class="aui-grid-row-label">资金转换</p>-->
            <!--</a>-->
            <a href="{:url('User/UserBank')}" class="aui-grid-row-item">
                <!--<i class="aui-icon-large aui-icon-large-sm aui-icon-help"></i>-->
                <img src="__STATIC__/User/img/logo/xinxi.png" alt="" style="width:40px;height:40px;margin-left:29%"/>
                <p class="aui-grid-row-label">提现信息</p>
            </a>
            <a href="{:url('User/UserRecharge')}" class="aui-grid-row-item">
                <!--<i class="aui-icon-large aui-icon-large-sm aui-icon-recharge"></i>-->
                <img src="__STATIC__/User/img/logo/chong.png" alt="" style="width:40px;height:40px;margin-left:29%"/>
                <p class="aui-grid-row-label">充值中心</p>
            </a>
            <!--<a href="{:url('User/UserTeam')}" class="aui-grid-row-item">-->
            <!--    <i class="aui-icon-large aui-icon-large-sm aui-icon-fight"></i>-->
            <!--    <p class="aui-grid-row-label">我的分享</p>-->
            <!--</a>-->
            <!--<a href="{:url('User/RecommendMap')}" class="aui-grid-row-item">-->
            <!--    <i class="aui-icon-large aui-icon-large-sm aui-icon-fight"></i>-->
            <!--    <p class="aui-grid-row-label">我的团队</p>-->
            <!--</a>-->
            <a href="{:url('User/RecommendMap')}" class="aui-grid-row-item">
                <!--<i class="aui-icon-large aui-icon-large-sm aui-icon-fight"></i>-->
                <img src="__STATIC__/User/img/logo/ke.png" alt="" style="width:40px;height:40px;margin-left:29%"/>
                <p class="aui-grid-row-label">我的客户</p>
            </a>
            <a href="{:url('Finance/FinanceList',array('Type'=>4))}" class="aui-grid-row-item">
                <!--<i class="aui-icon-large aui-icon-large-sm aui-icon-problem"></i>-->
                <img src="__STATIC__/User/img/logo/zi.png" alt="" style="width:40px;height:40px;margin-left:29%"/>
                <p class="aui-grid-row-label">资金明细</p>
            </a>
<!--            <a href="#" class="aui-grid-row-item">-->
<!--                <i class="aui-icon-large aui-icon-large-sm aui-icon-evaluates"></i>-->
<!--                <p class="aui-grid-row-label">我的评价</p>-->
<!--            </a>-->
            <a href="{:url('User/AddressList')}" class="aui-grid-row-item">
                <!--<i class="aui-icon-large aui-icon-large-sm aui-icon-evaluate"></i>-->
                <img src="__STATIC__/User/img/logo/di.png" alt="" style="width:40px;height:40px;margin-left:29%"/>
                <p class="aui-grid-row-label">收货地址</p>
            </a>
            <a href="{:url('User/FeedbackAdd')}" class="aui-grid-row-item">
                <!--<i class="aui-icon-large aui-icon-large-sm aui-icon-evaluate"></i>-->
                <img src="__STATIC__/User/img/logo/kefu.png" alt="" style="width:40px;height:40px;margin-left:29%"/>
                <p class="aui-grid-row-label">客服中心</p>
            </a>
<!--            <a href="{:url('Open/LoginOut')}" class="aui-grid-row-item">-->
<!--                &lt;!&ndash;<i class="aui-icon-large aui-icon-large-sm aui-icon-shares"></i>&ndash;&gt;-->
<!--                <img src="__STATIC__/User/img/logo/out.png" alt="" style="width:40px;height:40px;margin-left:29%"/>-->
<!--                <p class="aui-grid-row-label">退出登录</p>-->
<!--            </a>-->
        </div>
<!--        <div class="aui-recommend">-->
<!--            <img src="__STATIC__/User/img/bg/icon-tj3.jpg" alt="">-->
<!--            &lt;!&ndash;<h2>为你推荐</h2>&ndash;&gt;-->
<!--        </div>-->
<!--        <section class="aui-list-product">-->
<!--            <div class="aui-list-product-box">-->
<!--                {volist name="GoodsList" id="gv"}-->
<!--                <a href="{:url('Goods/GoodsDetail',array('goods_id'=>$gv.id))}" class="aui-list-product-item">-->
<!--                    <div class="aui-list-product-item-img">-->
<!--                        <img src="{$gv.logo_url}" alt="">-->
<!--                    </div>-->
<!--                    <div class="aui-list-product-item-text">-->
<!--                        <h3>{$gv.name}</h3>-->
<!--                        <div class="aui-list-product-mes-box">-->
<!--                            <div>-->
<!--							<span class="aui-list-product-item-price">-->
<!--								<em>¥</em>-->
<!--								{$gv.price}-->
<!--							</span>-->
<!--                                &lt;!&ndash;                            <span class="aui-list-product-item-del-price">&ndash;&gt;-->
<!--                                &lt;!&ndash;								¥495.65&ndash;&gt;-->
<!--                                &lt;!&ndash;							</span>&ndash;&gt;-->
<!--                            </div>-->
<!--                            &lt;!&ndash;                        <div class="aui-comment">986评论</div>&ndash;&gt;-->
<!--                        </div>-->
<!--                    </div>-->
<!--                </a>-->
<!--                {/volist}-->
<!--            </div>-->
<!--        </section>-->
    </section>
</section>

<footer class="aui-footer-default aui-footer-fixed">
    <a href="{:url('Index/App')}" class="aui-footer-item">
        <span class="aui-footer-item-icon aui-icon aui-footer-icon-home"></span>
        <span class="aui-footer-item-text">首页</span>
    </a>
    <a href="{:url('Index/Index')}" class="aui-footer-item">
        <span class="aui-footer-item-icon aui-icon aui-footer-icon-car"></span>
        <span class="aui-footer-item-text">商城</span>
    </a>
    <a href="{:url('Index/pin')}" class="aui-footer-item">
        <span class="aui-footer-item-icon aui-icon aui-footer-icon-car"></span>
        <span class="aui-footer-item-text">拼团</span>
    </a>
<!--    <a href="{:url('Goods/ClassList')}" class="aui-footer-item">-->
<!--        <span class="aui-footer-item-icon aui-icon aui-footer-icon-class"></span>-->
<!--        <span class="aui-footer-item-text">分类</span>-->
<!--    </a>-->
    {if condition="$UserInfo.level gt 1"}
    <a href="{:url('Order/UserCart')}" class="aui-footer-item">
        <span class="aui-footer-item-icon aui-icon aui-footer-icon-car"></span>
        <span class="aui-footer-item-text">购物车</span>
    </a>
    {/if}
    <a href="{:url('User/Index')}" class="aui-footer-item aui-footer-active">
        <span class="aui-footer-item-icon aui-icon aui-footer-icon-me"></span>
        <span class="aui-footer-item-text">我的</span>
    </a>
</footer>

<script type="text/javascript" src="__STATIC__/User/js/jquery.min.js"></script>
<script type="text/javascript">
    $(function () {
        //绑定滚动条事件
        //绑定滚动条事件
        $(window).bind("scroll", function () {
            var sTop = $(window).scrollTop();
            var sTop = parseInt(sTop);
            if (sTop >= 44) {
                if (!$("#scrollSearchDiv").is(":visible")) {
                    try {
                        $("#scrollSearchDiv").slideDown();
                    } catch (e) {
                        $("#scrollSearchDiv").show();
                    }
                }
            }
            else {
                if ($("#scrollSearchDiv").is(":visible")) {
                    try {
                        $("#scrollSearchDiv").slideUp();
                    } catch (e) {
                        $("#scrollSearchDiv").hide();
                    }
                }
            }
        });
    })
</script>
<script type="text/javascript" charset="utf-8">
    function func(){
            $.ajax({
                type:"POST",
                url:"{:url('User/qiandao')}",
                data:{
                },
                dataType:"json",
                success:function(data){
                    if(data.status == 1){
                        alert(data.message);
                        window.location.reload();
                    }else if(data.status == 2){
                        alert(data.message);
                        window.location.reload();
                    }
                }
            })
    }
</script>
</body>
</html>